import { Component } from '@angular/core';
import { NzMessageService } from 'imeepos-antd';
import { SFSchema } from 'imeepos-delon';

@Component({
    selector: 'app-dashboard',
    templateUrl: './dashboard.component.html'
})
export class DashboardComponent {
    schema: SFSchema = {
        properties: {
            email: {
                type: 'string',
                title: '数据库类型',
                default: "mysql"
            },
            host: {
                type: 'string',
                title: '数据库地址',
                default: "localhost"
            },
            port: {
                type: 'number',
                title: '数据库端口',
                default: "3306"
            },
            username: {
                type: 'string',
                title: '数据库用户名',
                default: "root"
            },
            password: {
                type: 'string',
                title: '数据库密码',
                default: "123456"
            },
            database: {
                type: "string",
                title: "数据库",
                default: "meepo"
            }
        }
    };

    submit(value: any) {

    }
    constructor(public msg: NzMessageService) { }
}
